package com.gxa.mapper;

import com.gxa.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Byte id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    User findByPhone(@Param("user") User user);

    User findByName(@Param("user") User user);

    Integer updateByUserPhone(@Param("user") User user);

    List<User> findAll();
}